import request from '@/utils/request'

// 查询事业部门列表
export function divisionList(params) {
  return request({
    url: '/qcmasterdata/division/search/bindList',
    method: 'get',
    params
  })
}
// 登录用户事业部门列表
export function userDivisionNames(params) {
  return request({
    url: '/qcmasterdata/division/search/userDivisionNames',
    method: 'get',
    params
  })
}
// 根据事业部名称获取物料大类
export function getOneLevelCategoryByDivisionName(data) {
  return request({
    url: '/qcmasterdata/category/getOneLevelCategoryByDivisionName',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params:data
  })
}


export function divisionAndBaseListAPI() {
  return request({
    url: '/qcmasterdata/division/search/divisionAndBaseList',
    method: 'get'
  })
}

